package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 报警列表
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("rb_alarm_msg")
@ApiModel(value = "AlarmMsg对象", description = "报警列表")
public class AlarmMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("报警ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("所属设备ID")
    private Integer equipmentId;

    @ApiModelProperty("所属设备名称")
    private String equipmentName;

    @ApiModelProperty("所属组织ID")
    private Integer organizationId;

    @ApiModelProperty("所属组织名称")
    private String organizationName;

    @ApiModelProperty("报警类型")
    private String alarmType;

    @ApiModelProperty("报警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmTime;

    @ApiModelProperty("报警状态：已解决，未解决")
    private String alarmStatus;

    @ApiModelProperty("负责人id")
    private Long principalId;

    @ApiModelProperty("负责人")
    private String principal;

    @ApiModelProperty("解决人id")
    private Long solverId;

    @ApiModelProperty("解决人")
    private String solver;

    @ApiModelProperty("任务内容")
    private String taskContent;

    @ApiModelProperty("派发时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;

    @ApiModelProperty("解决时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime solveTime;

    @ApiModelProperty(value = "逻辑删除(0:可用 1:已删除)",required = true)
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "是否已读(0:已读 1:未读)")
    private Integer isRead;


}
